package com.yitongmao.bean;

import java.util.List;

/*
* 作者：梁伟航 on 2017/8/8 19:40
* 类的用途：
*/
public class SubmitIndentBean {

    /**
     * result : {"state":"1","code":"ok","url":null,"obj":null,"isRollBack":null,"message":"成功!"}
     * allTotalPrice : 20000.0
     * payType : [{"ALL":"全款"}]
     * address : {"address":"某哦我永远","cityName":"郑州市","phone":"18513254756","name":"哦这","id":43,"provinceName":"河南省","countryName":"中原区","userId":7,"status":"01"}
     * platfromName : 水果采购平台
     * payMode : [{"TRANSFER":"公司转账"}]
     * orderList : [{"id":0,"orderCode":null,"codePre":null,"codeSuf":null,"transactionId":0,"userId":0,"supplier":0,"addressId":0,"type":null,"orderTyp":null,"state":null,"totalPrice":20000,"reservePrice":6000,"finalPrice":14000,"transitPrice":0,"realPrice":null,"leaveMessage":null,"isAdvanceState":null,"remittanceCode":null,"remark":null,"stateName":null,"closingTime":null,"payTime":null,"createTime":null,"tag":null,"isRefund":null,"refundId":0,"deliveryTime":null,"expectDeliveryTime":null,"dispatching":null,"version":0,"payMode":null,"payType":null,"invoiceType":null,"refundState":null,"orderGoods":[{"id":0,"orderId":0,"goodsId":21,"classId":0,"goodsCode":null,"title":"美国西北车厘子","subTitle":null,"goodsThumb":"https://img14.360buyimg.com/n0/jfs/t6199/228/1023126957/351399/c983b05c/5948d489Nd8f8b7ad.jpg","tradePrice":5000,"retailPrice":null,"bidPrice":null,"isAdvanceState":null,"number":4,"spec":null,"specDesc":null}],"orderGood":[],"invoice":null,"address":null,"account":null}]
     * keyList : ["21"]
     * goodsType : 00
     */

    public ResultBean result;
    public double allTotalPrice;
    public AddressBean address;
    public String platfromName;
    public String goodsType;
    public List<PayTypeBean> payType;
    public List<PayModeBean> payMode;
    public List<OrderListBean> orderList;
    public List<String> keyList;

    @Override
    public String toString() {
        return "SubmitIndentBean{" +
                "result=" + result +
                ", allTotalPrice=" + allTotalPrice +
                ", address=" + address +
                ", platfromName='" + platfromName + '\'' +
                ", goodsType='" + goodsType + '\'' +
                ", payType=" + payType +
                ", payMode=" + payMode +
                ", orderList=" + orderList +
                ", keyList=" + keyList +
                '}';
    }

    public static class ResultBean {
        /**
         * state : 1
         * code : ok
         * url : null
         * obj : null
         * isRollBack : null
         * message : 成功!
         */

        public String state;
        public String code;
        public Object url;
        public Object obj;
        public Object isRollBack;
        public String message;

        @Override
        public String toString() {
            return "ResultBean{" +
                    "state='" + state + '\'' +
                    ", code='" + code + '\'' +
                    ", url=" + url +
                    ", obj=" + obj +
                    ", isRollBack=" + isRollBack +
                    ", message='" + message + '\'' +
                    '}';
        }
    }

    public static class AddressBean {
        /**
         * address : 某哦我永远
         * cityName : 郑州市
         * phone : 18513254756
         * name : 哦这
         * id : 43
         * provinceName : 河南省
         * countryName : 中原区
         * userId : 7
         * status : 01
         */
        public String address;
        public String cityName;
        public String phone;
        public String name;
        public int id;
        public String provinceName;
        public String countryName;
        public int userId;
        public String status;

        @Override
        public String toString() {
            return "AddressBean{" +
                    "address='" + address + '\'' +
                    ", cityName='" + cityName + '\'' +
                    ", phone='" + phone + '\'' +
                    ", name='" + name + '\'' +
                    ", id=" + id +
                    ", provinceName='" + provinceName + '\'' +
                    ", countryName='" + countryName + '\'' +
                    ", userId=" + userId +
                    ", status='" + status + '\'' +
                    '}';
        }
    }

    public static class PayTypeBean {
        /**
         * ALL : 全款
         */

        public String ALL;

        @Override
        public String toString() {
            return "PayTypeBean{" +
                    "ALL='" + ALL + '\'' +
                    '}';
        }
    }


    public static class PayModeBean {
        /**
         * TRANSFER : 公司转账
         */

        public String TRANSFER;

        @Override
        public String toString() {
            return "PayModeBean{" +
                    "TRANSFER='" + TRANSFER + '\'' +
                    '}';
        }
    }

    public static class OrderListBean {
        /**
         * id : 0
         * orderCode : null
         * codePre : null
         * codeSuf : null
         * transactionId : 0
         * userId : 0
         * supplier : 0
         * addressId : 0
         * type : null
         * orderTyp : null
         * state : null
         * totalPrice : 20000.0
         * reservePrice : 6000.0
         * finalPrice : 14000.0
         * transitPrice : 0
         * realPrice : null
         * leaveMessage : null
         * isAdvanceState : null
         * remittanceCode : null
         * remark : null
         * stateName : null
         * closingTime : null
         * payTime : null
         * createTime : null
         * tag : null
         * isRefund : null
         * refundId : 0
         * deliveryTime : null
         * expectDeliveryTime : null
         * dispatching : null
         * version : 0
         * payMode : null
         * payType : null
         * invoiceType : null
         * refundState : null
         * orderGoods : [{"id":0,"orderId":0,"goodsId":21,"classId":0,"goodsCode":null,"title":"美国西北车厘子","subTitle":null,"goodsThumb":"https://img14.360buyimg.com/n0/jfs/t6199/228/1023126957/351399/c983b05c/5948d489Nd8f8b7ad.jpg","tradePrice":5000,"retailPrice":null,"bidPrice":null,"isAdvanceState":null,"number":4,"spec":null,"specDesc":null}]
         * orderGood : []
         * invoice : null
         * address : null
         * account : null
         */

        public int id;
        public Object orderCode;
        public Object codePre;
        public Object codeSuf;
        public int transactionId;
        public int userId;
        public int supplier;
        public int addressId;
        public Object type;
        public Object orderTyp;
        public Object state;
        public double totalPrice;
        public double reservePrice;
        public double finalPrice;
        public int transitPrice;
        public Object realPrice;
        public Object leaveMessage;
        public Object isAdvanceState;
        public Object remittanceCode;
        public Object remark;
        public Object stateName;
        public Object closingTime;
        public Object payTime;
        public Object createTime;
        public Object tag;
        public Object isRefund;
        public int refundId;
        public Object deliveryTime;
        public Object expectDeliveryTime;
        public Object dispatching;
        public int version;
        public Object payMode;
        public Object payType;
        public Object invoiceType;
        public Object refundState;
        public Object invoice;
        public Object address;
        public Object account;
        public List<OrderGoodsBean> orderGoods;
        public List<?> orderGood;

        @Override
        public String toString() {
            return "OrderListBean{" +
                    "id=" + id +
                    ", orderCode=" + orderCode +
                    ", codePre=" + codePre +
                    ", codeSuf=" + codeSuf +
                    ", transactionId=" + transactionId +
                    ", userId=" + userId +
                    ", supplier=" + supplier +
                    ", addressId=" + addressId +
                    ", type=" + type +
                    ", orderTyp=" + orderTyp +
                    ", state=" + state +
                    ", totalPrice=" + totalPrice +
                    ", reservePrice=" + reservePrice +
                    ", finalPrice=" + finalPrice +
                    ", transitPrice=" + transitPrice +
                    ", realPrice=" + realPrice +
                    ", leaveMessage=" + leaveMessage +
                    ", isAdvanceState=" + isAdvanceState +
                    ", remittanceCode=" + remittanceCode +
                    ", remark=" + remark +
                    ", stateName=" + stateName +
                    ", closingTime=" + closingTime +
                    ", payTime=" + payTime +
                    ", createTime=" + createTime +
                    ", tag=" + tag +
                    ", isRefund=" + isRefund +
                    ", refundId=" + refundId +
                    ", deliveryTime=" + deliveryTime +
                    ", expectDeliveryTime=" + expectDeliveryTime +
                    ", dispatching=" + dispatching +
                    ", version=" + version +
                    ", payMode=" + payMode +
                    ", payType=" + payType +
                    ", invoiceType=" + invoiceType +
                    ", refundState=" + refundState +
                    ", invoice=" + invoice +
                    ", address=" + address +
                    ", account=" + account +
                    ", orderGoods=" + orderGoods +
                    ", orderGood=" + orderGood +
                    '}';
        }

        public static class OrderGoodsBean {
            /**
             * id : 0
             * orderId : 0
             * goodsId : 21
             * classId : 0
             * goodsCode : null
             * title : 美国西北车厘子
             * subTitle : null
             * goodsThumb : https://img14.360buyimg.com/n0/jfs/t6199/228/1023126957/351399/c983b05c/5948d489Nd8f8b7ad.jpg
             * tradePrice : 5000.0
             * retailPrice : null
             * bidPrice : null
             * isAdvanceState : null
             * number : 4
             * spec : null
             * specDesc : null
             */

            public int id;
            public int orderId;
            public int goodsId;
            public int classId;
            public Object goodsCode;
            public String title;
            public Object subTitle;
            public String goodsThumb;
            public double tradePrice;
            public Object retailPrice;
            public Object bidPrice;
            public Object isAdvanceState;
            public int number;
            public Object spec;
            public Object specDesc;

            @Override
            public String toString() {
                return "OrderGoodsBean{" +
                        "id=" + id +
                        ", orderId=" + orderId +
                        ", goodsId=" + goodsId +
                        ", classId=" + classId +
                        ", goodsCode=" + goodsCode +
                        ", title='" + title + '\'' +
                        ", subTitle=" + subTitle +
                        ", goodsThumb='" + goodsThumb + '\'' +
                        ", tradePrice=" + tradePrice +
                        ", retailPrice=" + retailPrice +
                        ", bidPrice=" + bidPrice +
                        ", isAdvanceState=" + isAdvanceState +
                        ", number=" + number +
                        ", spec=" + spec +
                        ", specDesc=" + specDesc +
                        '}';
            }
        }
    }
}
